#ifndef LONGITEM_H
#define LONGITEM_H

#include <QGraphicsItem>

class LongItem : public QGraphicsItem
{
public:
    LongItem()
    {
    }

    ~LongItem()
    {
    }

    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
    {
        if(m_bhelp)
            painter->drawImage(QRectF(0.0,0.0,325.0,168.0),m_image,QRectF(0.0,m_y,325.0,168.0));
        else
            painter->drawImage(QRectF(0.0,0.0,378.0,168.0),m_image,QRectF(0.0,m_y,378.0,168.0));
    }
    virtual QRectF boundingRect() const
    {
        return QRectF(0.0,0.0,378.0,168.0);
    }

public:
    QImage m_image;
    int    m_y;
    bool   m_bhelp;
};

#endif // LONGITEM_H
